import 'neat-ui-dev/dist/lib/neat.css'
import './index.scss'
import { createApp } from 'vue'
import App from './App.vue'
import { router } from './router'
import i18n from './i18n'
import 'github-markdown-css'
import DemoPage from './components/DemoPage.vue'
import Demo from './components/Demo.vue'
import {STORAGENAME_LANG} from './constants/refs'

const app = createApp(App)
app.use(router)
app.use(i18n)
app.mount('#app')
app.component('DemoPage', DemoPage)
app.component('Demo', Demo)

const lang = window.localStorage.getItem(STORAGENAME_LANG)
if (lang !== null) {
  i18n.global.locale.value = lang
}